package com.example.webchar.webchar.service;

import com.example.webchar.webchar.pojo.Novel;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: webchars
 * @description
 * @author: YouName
 * @create: 2021-08-27 21:42
 **/
@Service
public interface NovelService {
    /**
     * 根据小说名称查询小说
     *
     * @param bookName
     * @return
     */
    List<Novel> fuzzyQueryNovel(String bookName);

    /**
     * 根据类型查询小说
     *
     * @param novelType
     * @return
     */
    List<Novel> queryNovelType(String novelType);

    /**
     * 返回index界面的西悉尼
     *
     * @return
     */
    List<List<Novel>> queryNovelIndex();

    /**
     * 查询当前作家的所有小说
     *
     * @param name
     * @return
     */
    List<Novel> queryNovelByName(String name);
}
